package com.jk.controller;

import com.jk.dto.CountRenshu;
import com.jk.dto.TemCandidate;
import com.jk.interfaces.TemCandidateServiceApi;
import com.jk.pojo.PagedResponse;
import com.jk.service.TemCandidateService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author yzf
 * @version 1.0
 * @ClassName TemCandidateController
 * @program: office
 * @description: TODO
 * @date 2025/2/17 14:13
 */
@RestController
@Slf4j
public class TemCandidateController implements TemCandidateServiceApi {
    @Autowired
    private TemCandidateService temCandidateService;

    @Override
    public PagedResponse<TemCandidate> findTemCandidateList(TemCandidate temCandidate, Integer pageNum, Integer pageSize) {
        return temCandidateService.findTemCandidateList(temCandidate,pageNum,pageSize);
    }

    @Override
    public void addTemCandidate(TemCandidate temCandidate) {
        temCandidateService.addTemCandidate(temCandidate);
    }

    @Override
    public void updateTemCandidate(TemCandidate temCandidate) {
        temCandidateService.updateTemCandidate(temCandidate);
    }

    @Override
    public void updateStateById(Integer id,String process) {
        temCandidateService.updateStateById(id,process);
    }

    //查询报表信息
    @Override
    public List<TemCandidate> findEchartsProcessList(TemCandidate temCandidate) {
        return temCandidateService.findEchartsProcessList(temCandidate);
    }

    @Override
    public List<CountRenshu> findCount() {
        return temCandidateService.findCount();
    }

    @Override
    public List<TemCandidate> findEchartsList() {
        return temCandidateService.findEchartsList();
    }

    @Override
    public Object findShuJvList() {
        return temCandidateService.findShuJvList();
    }


    @Override
    public TemCandidate getTemCandidateById(Integer id) {
        return temCandidateService.getTemCandidateById(id);
    }
}
